import Layout from '@/layout/index'

const otherRouter = {
  path: '/other',
  component: Layout,
  alwaysShow: true,
  redirect: '/other/idcard',
  name: 'other',
  meta: { title: '通用工具', icon: 'el-icon-files', front: true },
  children: [{
    path: 'idcard',
    name: 'Idcard',
    component: () => import('@/views/other/idcard'),
    meta: { title: '身份证工具', icon: 'el-icon-postcard' }
  }, {
    path: 'cron',
    name: 'Cron',
    component: () => import('@/views/other/cron'),
    meta: { title: 'cron 表达式', icon: 'el-icon-timer' }
  }, {
    path: 'compare',
    name: 'Compare',
    component: () => import('@/views/other/compare'),
    meta: { title: '列比较工具', icon: 'el-icon-bicycle' }
  }, {
    path: 'json',
    name: 'json',
    component: () => import('@/views/other/json'),
    meta: { title: 'JSON工具', icon: 'el-icon-reading' }
  }, {
    path: 'column',
    name: 'Column',
    component: () => import('@/views/other/column'),
    meta: { title: '列处理工具', icon: 'el-icon-ice-tea' }
  }, {
    path: 'decode',
    name: 'decode',
    component: () => import('@/views/other/decode'),
    meta: { title: '加解密工具', icon: 'el-icon-ice-tea' }
  }, {
    path: 'image/edit',
    name: 'ImageEdit',
    component: () => import('@/views/other/ImageEdit'),
    meta: { title: '图片编辑器', icon: 'el-icon-ice-tea' }
  }, {
    path: 'testTableTree',
    name: 'testTableTree',
    component: () => import('@/views/other/testTableTree'),
    meta: { title: '表格树选择', icon: 'el-icon-ice-tea' }
  }]
}

export default otherRouter
